<?php

function showGridProduct($product){
	
	$product_link = "/product/detail/". $product->id;
	$html = '<a href="'. $product_link. '">';
	$html.=		'<img src="/'.PRODUCT_IMAGES_URI. $product->image_path.'" width="100px" height="100px"/><br>';
	$html.= '</a><br>';
	$html.= '<span>'. $product->point. ' points</span><br>';											
	$html.= '<a href="'. $product_link. '">'. $product->title. '</a>';
	
	return $html;
}
?>
